/* plain_projection.h */

#ifndef DODO_PLAIN_PROJECTION_H
#define DODO_PLAIN_PROJECTION_H

#include <dodo_plot/kernel/point.h>
#include <dodo_plot/kernel/basic_utils.h>
#include <dodo_plot/map/projection_common.h>

namespace dodo_plot
{

class Plain_Projection : public Projection_Base
{

public:
	Point operator() (double lon, double lat) const;
	Point operator() (const Point& lonlat) const;

	int check_box(double, double, double, double) const;
	void toggle() const;
	void toggle_off() const;

public:
	Plain_Projection(double lon_min, double lon_max,
		double lat_min, double lat_max);

private:

	double back_center_lon_;

	double lon_min_, lon_max_;
	double lat_min_, lat_max_;

	Pos_Projection proj_1_;
	Pos_Projection proj_2_;

private:
	//extra stuffs to make drawing correct
	mutable int current_proj_;

	
};

}

#endif //DODO_PLAIN_PROJECTION_H

